package com.taxi.controller;

import com.taxi.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {
    @Autowired
    private PayService payService;
    /**
     * 乘客支付
     * @param subject
     * @param outTradeNo
     * @param totalAmount
     * @return
     */
    @GetMapping("/pay")
    public String pay(String subject,String outTradeNo,String totalAmount){
        return payService.pay(subject,outTradeNo,totalAmount);
    }
}
